package huoye.shops.sp;

import com.codeideology.android.utils.AXIApplicationPreference;

import huoye.shops.huoye.user.model.User;

/**
 * Created by who on 2018/8/14.
 */

public abstract class UserManagerHelper {

    private SharedPreferencesHelper preference;
    public static boolean isLogout = false;

    public UserManagerHelper() {
    }

    public void setPreference(SharedPreferencesHelper preference) {
        this.preference = preference;
    }

    public abstract boolean isLogin();

    public abstract void logout();


    public void saveUsername(String username) {
        this.preference.saveUsername(username);
    }

    public String getUsername() {
        return this.preference.getUsername();
    }

    public void removeUsername() {
        this.preference.removeUsername();
    }


    public void saveAngentId(String angentId) {
        this.preference.saveAngentId(angentId);
    }

    public String getAngentId() {
        return this.preference.getAngentId();
    }

    public void removeAngentId() {
        this.preference.removeAngentId();
    }

    public void savePassword(String password) {
        this.preference.savePassword(password);
    }

    public String getPassword() {
        return this.preference.getPassword();
    }

    public void removePassword() {
        this.preference.removePassword();
    }

    public void saveUserId(String id) {
        this.preference.saveUserId(id);
    }

    public String getUserId() {
        return this.preference.getUserId();
    }

    public void removeUserId() {
        this.preference.removeUserId();
    }


    public void saveCardType(int cardType) {
        this.preference.saveCardType(cardType);
    }

    public int getCardType() {
        return this.preference.getCardType();
    }

    public void removeCardType() {
        this.preference.removeCardType();
    }




    public void saveOverdue(boolean isOverdue) {
        this.preference.saveOverdue(isOverdue);
    }

    public boolean getOverdue() {
        return this.preference.getOverdue();
    }

    public void removeOverdue() {
        this.preference.removeOverdue();
    }


    public void savePowerManage(boolean isPowerManage) {
        this.preference.savePowerManage(isPowerManage);
    }

    public boolean getPowerManage() {
        return this.preference.getPowerManage();
    }

    public void removePowerManage() {
        this.preference.removePowerManage();
    }

    public void saveUserShopId(String shopId) {
        this.preference.saveUserShopId(shopId);
    }

    public String getUserShopId() {
        return this.preference.getUserShopId();
    }

    public void removeUserShopId() {
        this.preference.removeUserShopId();
    }

    public void saveCity(String city) {
        this.preference.saveCity(city);
    }

    public String getImageUrl() {
        return this.preference.getImageUrl();
    }

    public void removeImageUrl() {
        this.preference.removeImageUrl();
    }

    public void saveImageUrl(String url) {
        this.preference.saveImageUrl(url);
    }


    public String getUrl() {
        return this.preference.getUrl();
    }

    public void removeUrl() {
        this.preference.removeUrl();
    }

    public void saveUrl(String url) {
        this.preference.saveUrl(url);
    }


    public String getShopLogo() {
        return this.preference.getShopLogo();
    }

    public void removeShopLogo() {
        this.preference.removeShopLogo();
    }

    public void saveShopLogo(String img) {
        this.preference.saveShopLogo(img);
    }

    public String getCity() {
        return this.preference.getCity();
    }

    public void removeCity() {
        this.preference.removeCity();
    }


    public void saveWithdrawAccount(String account) {
        this.preference.saveWithdrawAccount(account);
    }

    public String getWithdrawAccount() {
        return this.preference.getWithdrawAccount();
    }

    public void removeWithdrawAccount() {
        this.preference.removeWithdrawAccount();
    }
}
